package com.yuandengta.yomall.auth.exception;

import lombok.Data;

/**
 * 自定义系统异常 {@link AuthBizException}
 *
 * @author Kevin
 * @email: 178676392@qq.com
 */
@Data
public class AuthBizException extends RuntimeException{
    private String message;
    private int code;

    public AuthBizException() {
    }

    public AuthBizException(String message, int code) {
        super(message);
        this.message = message;
        this.code = code;
    }

    public AuthBizException(String message) {
        super(message);
    }

    public AuthBizException(String message, Throwable cause) {
        super(message, cause);
    }
}
